package com.happly.happlycloud.dao;

import com.happly.happlycloud.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);



    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);
    
    List<Message> selectList();

    List<Message> selectByNameAndMessageId(@Param("userName")String userName, @Param("messageId") Integer messageId);

    List<Message> selectTutorList(Integer id);

    List<Message> selectByName(@Param("userName")String userName);



}